// needs get_UserName()

Ext.define('AmpleHarvest.objects.groups.window.members.cAddMember',
{
	extend			: 'Ext.window.Window',
	alias			: 'widget.ampleharvest-objects-groups-window-members-caddmember',
	layout			: 'fit',
	y				: 0,
	x				: 0,
	minimizable		: false,
	maximizable		: false,
	closable		: false,
	iconCls			: "window-group-request-icon",
	width			: 200,
	title			: "Add Member",
	shim			: false,
	animCollapse	: false,
	modal			: true,
	tools			:
	[
			{
				type	: "help",
				handler	: function()
				{
					Ext.Msg.show(
					{
						title	: "Harvest Request Help",
						iconCls	: "help",
						width	: 600,
						buttons	: Ext.Msg.OK,
						msg		: "<b>User</b> - This is the users SID<br/>"
								+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - REQUIRED<br/>"
								+ "<b>Source URL</b> - This is the URL of the site you wish to be harvested.<br/>"
								+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - REQUIRED<br/>"
								+ "<b>Language</b> - This is the Language you expect the site to be in.<br/>"
								+ "<b>Description</b> - This is a description of the site and what you are looking for.<br/>"
								+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - REQUIRED<br/>"
								+ "<b>Keywords</b> -  This is a list of Keywords you would like searched for on the site.<br/>"
								+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - REQUIRED If Whole site is not selected<br/>"
								+ "<b>Whole Site</b> -  Select this option if you would like the entire site harvested.<br/>"
								+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - REQUIRED If Keywords are not selected<br/>"
								+ "<b>Harvest Reason</b> -  This is the reason that you need the site to be harvested.<br/>"
								+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - REQUIRED<br/>"
								+ "<b>Comments</b> -  Any comments or special instructions you have for the harvest manager.<br/>"
								+ "<b>Sensitive</b> -  Are there any risks associated with the harvesting of this site.<br/>"
								+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - REQUIRED<br/>"
								+ "<b>Risk</b> -  What is the risk associated with harvesting this site.<br/>"
								+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - REQUIRED if Sensitive is set to Yes<br/>"
								+ "<b>Source Type</b> - What type of site are you trying to harvest.<br/>"
								+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - REQUIRED<br/>"
								+ "<b>Frequency</b> - How often would you like the site harvested for new content.<br/>"
								+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - REQUIRED<br/>",
						icon	: Ext.MessageBox.QUESTION
					}
					);
				}
			}
	],

	initComponent	: function()
	{		
		this.m_str_UserName = "get_UserName";
		this.m_obj_Form = Ext.create("AmpleHarvest.objects.groups.forms.cMember");

		this.callParent();

		this.add(this.m_obj_Form);
	}
}
);